import { post, form } from '@/utils/request';
import request from '@/utils/request';

//分局,派出所报告历史查询
export async function getReportList(params) {
  return post('/report/list', params);
}

export async function getDownload(params: { fileName: string }) {
  return request({
    method: 'post',
    url: '/report/download',
    params,
    responseType: 'blob',
  });
}
export async function insert(params: any) {
  return form('/processBasic/insert', params);
}
export async function update(params: any) {
  return form('/processBasic/update', params);
}
export async function detail(params) {
  return post('/processBasic/detail', params);
}
export async function queryBasicId() {
  return post('/processBasic/queryBasicId');
}
export async function approveUpdate(params: any) {
  return post('/processBasic/approveUpdate', params);
}
export async function feedbackUpdate(params: any) {
  return form('/processBasic/feedbackUpdate', params);
}
export async function processReturninsert(params: any) {
  return post('/processReturn/insert', params);
}
export async function getRetuenDetail(params: any) {
  return post('/processReturn/getRetuenDetail', params);
}
export async function getRetuenDelete(params: any) {
  return post('/processReturn/delete ', params);
}
export async function queryApproveLeader() {
  return post('processBasic/queryApproveLeader');
}
export async function logList(params) {
  return post('processBasic/logList', params);
}
export async function ProcessTypeTree() {
  return post('processBasic/ProcessTypeTree');
}
export async function ProcessTypeUpdate(params: any) {
  return post('processBasic/ProcessTypeUpdate', params);
}
export async function ProcessTypeDelete(params: any) {
  return post('processBasic/ProcessTypeDelete', params);
}

//流转单列表
export async function processBasicList(params) {
  return post('/processBasic/list', params);
}
//流转单列表（审批）
export async function approveList(params) {
  return post('/processBasic/approveList', params);
}
//流转单列表（签收与反馈）
export async function feedbackList(params) {
  return post('/processBasic/feedbackList', params);
}

//获取辖区单位
export async function getQueryXqdwList() {
  return post('/processBasic/queryXqdwList');
}

//获取辖区民警
export async function getQueryUserList(params) {
  return post('/processBasic/queryUserList', params);
}

//确认完成
export async function getFinishUpdate(params) {
  return post('/processBasic/finishUpdate', params);
}
//确认签收
export async function getReceivingUpdate(params) {
  return post('/processBasic/receivingUpdate', params);
}
//流转单统计头部
export async function getBasicTotal(params) {
  return post('/processBasic/basicTotal', params);
}
//流转单统计列表
export async function getBasicTotalList(params) {
  return post('/processBasic/basicTotalList', params);
}
//流转单删除
export async function getDelete(params) {
  return post('/processBasic/delete', params);
}
